home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / netprog.zip / NETPROG.TAR / net.s5 / inet.h < prev    next >
C/C++ Source or Header  |  1989-12-17  |  533b  |  22 lines

  1. /*
  2.  * Definitions for TCP and UDP client/server programs.
  3.  */
  4.  
  5. #include    <stdio.h>
  6. #include    <fcntl.h>
  7. #include    <tiuser.h>        /* System V R3.2 TLI definitions */
  8. #include    <sys/types.h>
  9. #include    <sys/socket.h>        /* WIN/TCP definitions */
  10. #include    <sys/in.h>        /* WIN/TCP definitions */
  11.  
  12. #define    DEV_UDP        "/dev/udp"    /* WIN/TCP names */
  13. #define    DEV_TCP        "/dev/tcp"    /* WIN/TCP names */
  14.  
  15. #define    SERV_UDP_PORT    6000
  16. #define    SERV_TCP_PORT    6000
  17. #define    SERV_HOST_ADDR    "192.43.235.6"    /* host addr for server */
  18.  
  19. #define    MAXLINE         255
  20.  
  21. char    *pname;
  22.